package br.com.inner.custom;

import java.io.UnsupportedEncodingException;

import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;

public class MailRemetente {
	
	private InternetAddress remetente;
	
	public MailRemetente(String email) throws AddressException{
		this.remetente = new InternetAddress(email);
	}

	public MailRemetente(String email,String nome) throws AddressException, UnsupportedEncodingException{
		this.remetente = new InternetAddress(email,nome);
	}

	/**
	 * @return Returns the remetente.
	 */
	public InternetAddress getRemetente() {
		return remetente;
	}

	/**
	 * @param remetente The remetente to set.
	 */
	public void setRemetente(InternetAddress remetente) {
		this.remetente = remetente;
	}
	
	
	
 

}

